package fr.poy.mygluco.model;

import java.io.Serializable;
 

@SuppressWarnings("serial")
public class AppLog implements Serializable{ 

	public static enum LEVEL{ INFO , WARN , ERROR , CONF } ; 
	
	private LEVEL level;
	private String message;
	  
	public AppLog() { 
	}

	public AppLog(LEVEL level, String message) {
		super();
		this.level = level;
		this.message = message;
	}
	
	public LEVEL getLevel() {
		return level;
	}
	public String getMessage() {
		return message;
	}
	public void setLevel(LEVEL level) {
		this.level = level;
	}
	public void setMessage(String message) {
		this.message = message;
	}

	@Override
	public String toString() { 
		return "" + level + " - " + message +"\n" ;
	}
	
	

}
